package com.ssy.lingxi.after.sale.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 任务意见枚举
 * @author 伍将
 * @date 2020/9/22
 * @version 2.0.0
 */
public enum TaskAgreeEnum {
    /**
     * 无条件进行下一步任务
     */
    NEXT(-1, "无条件进行下一步任务"),
    /**
     * 拒绝
     */
    REFUSE(0, "拒绝"),
    /**
     * 同意
     */
    AGREE(1, "同意"),
    /**
     * 同意条件2
     */
    AGREE_CONDITION2(2, "同意");

    private final Integer code;
    private final String message;

    TaskAgreeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }
}
